package com.czy.daishusys.db;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by King on 2016/6/30 0030.
 */
@Table(name = "user",onCreated = "CREATE UNIQUE INDEX account_index ON user(useraccount)")
public class UserTable {

    @Column(name = "id",isId = true)
    private int id;
    @Column(name ="useraccount")
    private String userAccount;
    @Column(name = "userpassword")
    private String userPassword;
    @Column(name = "lastlogintime")
    private long lastLoginTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public long getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    @Override
    public String toString() {
        return "UserTable{" +
                "id=" + id +
                ", userAccount='" + userAccount + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", lastLoginTime=" + lastLoginTime +
                '}';
    }
}
